home *** CD-ROM | disk | FTP | other *** search
- Path: troll.powertech.no!usenet
- From: leo@powertech.no (Eivind Nordseth)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Shared library open and close functions
- Date: 17 Feb 96 19:14:18 +0100
- Organization: Ultima Thule Software
- Message-ID: <881.6621T1154T915@powertech.no>
- References: <510.6619T1238T1638@Th0r.foo.bar>
- NNTP-Posting-Host: gw7-3.oslo.no.powertech.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- In article <510.6619T1238T1638@Th0r.foo.bar> christon (Christopher Naas) wrote:
- >I want one function that is called the first time the library is opened, and
- >one function that is called when the library is closed by the last user and
- >it is flushed from memory.
-
- If you use the libinit stuff for your library which comes with SAS/C and
- one global section is it quite straight forward to add this.
-
- Just make an __UserLibInit() and an __UserLibCleanup() function to your
- code.
-
- It's a little bit harder when you don't use one global section. Then must
- you make your own version of libint.c.
-
- --
- | Eivind 'Leo' Nordseth | IRC #amiga: Leo | leo@powertech.no |
- +-------------------------+--------------------+---------------------+
- | THOR 2.2 Team | http://www.cs.uit.no/~kjelli/thor.html |
-
- DAMN IT, I GOTTA GET OUTTA HERE!
-
-